package com.candy.oop;

/**
 * @author donglin
 * @Title:
 * @类名: Student
 * @date 2020/9/4
 */
public class Student extends Person{
    //属性
    public int stuNo;
    String stuName;
    boolean stuSex;
    Teacher teacher;
    public static final String intter="唱歌";

    public Student() {
    }

    public Student(int stuNo, String stuName, boolean stuSex) {
        this.stuNo = stuNo;
        this.stuName = stuName;
        this.stuSex = stuSex;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }


    public Teacher getTeacher() {
        return teacher;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    //方法
    public void sayHai(){
        System.out.println("早上好");
    }
    public void sayHai(String stuName){

    }

    @Override
    public void eatFood() {
        super.eatFood();
        System.out.println("我在吃糖醋排骨");
    }
}
